<template>
  <div id="app">
    <h3 @click="fn">根组件</h3>
    <router-view />
  </div>
</template>

<script>

export default ({
  methods: {
    fn() {
      console.log('222')
    }
  }
})
</script>

<style lang="scss" scoped></style>
